class_name PlayerCrouchState
extends GameplayState

@onready var player: Player = $"../../../"


func _on_enter() -> void:
	player.play_animation(&"crouch")

	player.add_tag(GameplayTagLibrary.State_Ground_Crouch)

	player.state_checker.change_to_crouch_collision()

	player.velocity = Vector2.ZERO


func _on_exit() -> void:
	player.remove_tag(GameplayTagLibrary.State_Ground_Crouch)

	player.state_checker.change_to_stand_collision()
